function getXoops_url() {
    url = "http://" + location.hostname;
    return url
}
function getAttribute(c, a) {
    var b = new RegExp("(^|&|\\?|\\s)" + a + "\\s*=\\s*([^&]*?)(\\s|&|$)", "i");
    if (b.test(c)) {
        return RegExp.$2.replace(/[\x0f]/g, ";")
    }
    return ""
}
function getIsHtml(c) {
    var a = /.+html/;
    var b = new RegExp(a);
    if (b.test(c)) {
        return true
    }
    return false
}
$("document").ready(function() {
    var X;
    var E;
    var K;
    var I;
    var u;
    var F = window.location.href;
    E = getAttribute(F, "op");
    if (!E) {
        E = "dcjb"
    }
    K = $("#fct").val();
    X = getAttribute(F, "num");
    if (!X) {
        if (E == "r68m" || E == "r78m" || E == "yl3m" || E == "kdq2" || E == "hzq2" || E == "kdq3" || E == "hzq3" || E == "q23m" || E == "q24m" || E == "q35m" || E == "q36m") {
            X = 100
        } else {
            if (E == "r45m" || E == "r57m" || E == "r67m" || E == "yl7m" || E == "q2zux" || E == "q34m") {
                X = 200
            } else {
                if (E == "yl4m" || E == "yl6m" || E == "q3zux" || E == "q2zhix") {
                    X = 500
                } else {
                    if (E == "r56m" || E == "yl5m" || E == "q3zhix") {
                        X = 1000
                    } else {
                        if (E == "r34m" || E == "r35m" || E == "r46m" || E == "r47m" || E == "r58m" || E == "r59m" || E == "r69m" || E == "r79m" || E == "r89m" || E == "q14m" || E == "q13m" || E == "q12m" || E == "q11m" || E == "yl9m" || E == "yl10m" || E == "kd5m" || E == "hz5m" || E == "yl8m" || E == "wn8m" || E == "q25m" || E == "q37m" || E == "q38m" || E == "q39m") {
                            X = 50
                        } else {
                            X = "jt"
                        }
                    }
                }
            }
        }
    }
    $("#q" + X).addClass("active").siblings().removeClass("active");
    var v;
    v = getAttribute(F, "opp");
    if ($("#" + v)) {
        $("#" + v).addClass("active").siblings().removeClass("active")
    }
    $("#" + E).addClass("active").siblings().removeClass("active");
    if (E == "hmyl" || E == "yl2m" || E == "yl3m" || E == "yl4m" || E == "yl5m" || E == "yl6m" || E == "yl7m" || E == "yl8m" || E == "wn8m" || E == "kd5m" || E == "hz5m") {
        $("#rxyls").addClass("active")
    } else {
        if (E == "chfh" || E == "hmfht" || E == "hzfh" || E == "kdfh" || E == "rxjb" || E == "rxmx" || E == "hmzh" || E == "hzzs" || E == "kdzs") {
            $("#rxjbzs").addClass("active")
        } else {
            if (E == "chfhq2" || E == "hmfhq2" || E == "kdfhq2" || E == "hzfhq2" || E == "q2zhix" || E == "q2zux" || E == "kdq2" || E == "hzq2" || E == "q23m" || E == "q24m" || E == "q25m" || E == "q26m" || E == "q27m" || E == "q28m") {
                $("#q2jb").addClass("active")
            } else {
                if (E == "chfhq3" || E == "hmfhq3" || E == "kdfhq3" || E == "hzfhq3" || E == "q3zhix" || E == "q3zux" || E == "kdq3" || E == "hzq3" || E == "q34m" || E == "q35m" || E == "q36m" || E == "q37m" || E == "q38m" || E == "q39m") {
                    $("#q3jb").addClass("active")
                } else {
                    if (E == "dcr1" || E == "q11m" || E == "q12m" || E == "q13m" || E == "q14m") {
                        $("#dcr1").addClass("active")
                    } else {
                        if (E == "kaijiang") {
                            $("#kaijiang").addClass("active")
                        } else {
                            if (E == "qu8q3zu" || E == "qu8q3zh" || E == "qu8q2zu" || E == "qu8q2zh" || E == "qu8q1" || E == "qu8r2" || E == "qu8r3" || E == "qu8r4" || E == "qu8r5") {
                                $("#qu8r1").addClass("active")
                            } else {
                                if (E == "drtjq3kd" || E == "drtjq3hz" || E == "drtjq2kd" || E == "drtjq2hz" || E == "drtjkd" || E == "drtjhz" || E == "drtjr2" || E == "drtjr3" || E == "drtjr4" || E == "drtjr5" || E == "drtjq1" || E == "drtjq2zhi" || E == "drtjq2zu" || E == "drtjq3zhi" || E == "drtjq3zu") {
                                    $("#drtjr1").addClass("active")
                                } else {
                                    $("#dcjb").addClass("active")
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    if (!K) {
        K = "desc"
    }
    if (K == "desc") {
        I = "sort sortdown";
        u = "asc"
    } else {
        I = "sort sortup";
        u = "desc"
    }
    var B = getXoops_url();
    $(".sort").addClass(I).click(function() {
        window.location = B + "/modules/dcgpc?op=" + E + "&num=" + X + "&fct=" + u
    });
    $("tr.cur\\-pointer td.chart\\-bg\\-hmfb").toggle(function() {
        $(this).addClass("chart-bg-hmfb dqhm")
    },
    function() {
        $(this).removeClass("chart-bg-hmfb dqhm");
        $(this).addClass("chart-bg-hmfb")
    });
    $(".chart\\-bg\\-blue2").toggle(function() {
        $(this).addClass("chart-bg-blue2 ath")
    },
    function() {
        $(this).removeClass("chart-bg-blue2 ath");
        $(this).addClass("chart-bg-blue2")
    });
    $(".chart\\-\\bg\\-pink2").toggle(function() {
        $(this).addClass("chart-bg-pink2 athc")
    },
    function() {
        $(this).removeClass("chart-bg-pink2 athc");
        $(this).addClass("chart-bg-pink2")
    });
    $(".chart\\-bg\\-green2").toggle(function() {
        $(this).addClass("chart-bg-green2 athd")
    },
    function() {
        $(this).removeClass("chart-bg-green2 athd");
        $(this).addClass("chart-bg-green2")
    });
    $(".chart\\-bg\\-yellow2").toggle(function() {
        $(this).addClass("chart-bg-yellow2 athb")
    },
    function() {
        $(this).removeClass("chart-bg-yellow2 athb");
        $(this).addClass("chart-bg-yellow2")
    });
    $(".chart\\-bg\\-purple2").toggle(function() {
        $(this).addClass("chart-bg-purple2 atht")
    },
    function() {
        $(this).removeClass("chart-bg-purple2 atht");
        $(this).addClass("chart-bg-purple2")
    });
    $("tr.cur\\-pointer td.chart\\-bg\\-c10").toggle(function() {
        $(this).addClass("blank-c10")
    },
    function() {
        $(this).removeClass("blank-c10");
        $(this).addClass("chart-bg-c10")
    });
    $("tr.cur\\-pointer td.chart\\-bg\\-c6").toggle(function() {
        $(this).addClass("blank-c6")
    },
    function() {
        $(this).removeClass("blank-c6");
        $(this).addClass("chart-bg-c6")
    });
    var V = "#FF9916";
    var J = $("#numtem").val();
    if (J > 0) {
        var C = $("td[id^='a']");
        var N = C.length;
        if (N > 0) {
            var S = C.eq(0);
            var q = S.width() / 2;
            trendVML_CreateCanvas("myCanvas", "a", V, J, q);
            trendVML("myCanvas", "a", V, J, q)
        }
        var Y = $("td[id^='b']");
        var g = Y.length;
        if (g > 0) {
            var M = Y.eq(0);
            var o = M.width() / 2;
            trendVML("myCanvas", "b", V, J, o)
        }
        var s = $("td[id^='c']");
        var P = s.length;
        if (P > 0) {
            var G = s.eq(0);
            var n = G.width() / 2;
            trendVML("myCanvas", "c", V, J, n)
        }
        var O = $("td[id^='d']");
        var l = O.length;
        if (l > 0) {
            var A = O.eq(0);
            var m = A.width() / 2;
            trendVML("myCanvas", "d", V, J, m)
        }
        var c = $("td[id^='e']");
        var Q = c.length;
        if (Q > 0) {
            var t = c.eq(0);
            var k = t.width() / 2;
            trendVML("myCanvas", "e", V, J, k)
        }
        var D = $("td[id^='f']");
        var p = D.length;
        if (p > 0) {
            var i = D.eq(0);
            var j = i.width() / 2;
            trendVML("myCanvas", "f", V, J, j)
        }
        var a = $("td[id^='g']");
        var R = a.length;
        if (R > 0) {
            var b = a.eq(0);
            var h = b.width() / 2;
            trendVML("myCanvas", "g", V, J, h)
        }
        var H = $("td[id^='k']");
        var U = H.length;
        if (U > 0) {
            var L = H.eq(0);
            var f = L.width() / 2;
            trendVML("myCanvas", "k", V, J, f)
        }
        var z = $("td[id^='m']");
        var W = z.length;
        if (W > 0) {
            var y = z.eq(0);
            var e = y.width() / 2;
            trendVML("myCanvas", "m", V, J, e)
        }
        var T = $("td[id^='n']");
        var w = T.length;
        if (w > 0) {
            var r = T.eq(0);
            var d = r.width() / 2;
            trendVML("myCanvas", "n", V, J, d)
        }
    }
    reuse();
    numberCheck();
    numberCheck2();
    numberCheck3();
    joCheck();
    dxCheck();
    zhCheck();
    l012Check();
    hzCheck();
    kdCheck();
    showHaoMaBox()
});
function showHaoMaBox() {
    $("#showHaoMaBox").toggle(function() {
        $("#haomabox").fadeIn()
    },
    function() {
        $("#haomabox").fadeOut()
    })
}
$(document).ready(function() {
    $(".ylball").click(function() {
        var b = $("#ylball_num").val();
        var a = $(this).attr("bid");
        var f = $("#ylball_selected").val();
        var e = new Array();
        var d = new Array();
        if (f) {
            e = f.split(" ")
        }
        if ($(this).hasClass("yl_ball_on")) {
            $(this).removeClass("yl_ball_on");
            if (b > 0) {
                $("#ylball_num").val(parseInt(b) - 1)
            }
            for (var c = 0,
            g = 0; c <= e.length; c++) {
                if (e[c] != a) {
                    if (e[c]) {
                        d[g++] = e[c]
                    }
                }
            }
            e = d
        } else {
            $(this).addClass("yl_ball_on");
            $("#ylball_num").val(parseInt(b) + 1);
            e.push(a)
        }
        f = e.join(" ");
        $("#ylball_selected").val(f)
    })
});
$(document).ready(function() {
    $(".ball").click(function() {
        var b = $("#ball_num").val();
        var a = $(this).attr("bid");
        var f = $("#ball_selected").val();
        var e = new Array();
        var d = new Array();
        if (f) {
            e = f.split(",")
        }
        if ($(this).hasClass("ball_on")) {
            $(this).removeClass("ball_on");
            if (b > 0) {
                $("#ball_num").val(parseInt(b) - 1)
            }
            for (var c = 0,
            g = 0; c <= e.length; c++) {
                if (e[c] != a) {
                    if (e[c]) {
                        d[g++] = e[c]
                    }
                }
            }
            e = d
        } else {
            $(this).addClass("ball_on");
            $("#ball_num").val(parseInt(b) + 1);
            e.push(a)
        }
        f = e.join(",");
        $("#ball_selected").val(f)
    });
    $(".haoma_check").click(function() {
        var d = $("input[@name=model][@checked]").val();
        var a = $("input[@name=times][@checked]").val();
        if (d == 1) {
            var c = $("#ball_num").val();
            if (c > 5) {
                alert("\u4efb\u9009\u53f7\u7801\u4e0d\u80fd\u8d85\u8fc75\u4e2a!");
                return false
            }
        } else {
            if (d == 2) {
                var c = $("#ball_num").val();
                if (c > 3) {
                    alert("\u76f4\u9009\u53f7\u7801\u4e0d\u80fd\u8d85\u8fc73\u4e2a!");
                    return false
                }
            }
        }
        var e = $("#ball_selected").val();
        var b = $("#ball_url").val();
        window.location.href = b + "?op=hmcx&h=" + escape(e) + "&m=" + parseInt(d) + "&l=" + parseInt(a)
    })
});
$(function() {
    $(".fixedtable").fixedtableheader({
        highlightrow: true
    });
    $(".kaijiang").css({
        width: "90px"
    });
    $(".cc").each(function() {
        var a = $(this).attr("n");
        var d = $(this).html();
        d = d.substr(1);
        var b = d.substr(0, d.length - 1);
        $("#" + a).html($.base64.atob(b, true))
    })
});
function reuse() {
    $("#reuse").click(function() {
        $("#tablesort").find("tr").each(function() {
            isOk = false;
            var a = $(this).find("td").eq(0);
            var b = a.html();
            $(this).find("td").css({
                "background-color": ""
            });
            $(this).css({
                display: ""
            })
        });
        $("#js").val(0);
        $("#dx").val(0);
        $("#zh").val(0);
        $("#l012").val(0);
        $("#kd").val(0);
        $("#hz").val(0);
        $("#ylball_num").val(0);
        $("#ylball_selected").val("");
        $(".ylball").each(function() {
            if ($(this).hasClass("yl_ball_on")) {
                $(this).removeClass("yl_ball_on")
            }
        })
    })
}
function hzCheck() {
    $("#hz").change(function() {
        var b = $(this).val();
        var a = 0;
        if (b) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var e = $(this).find("td").eq(0);
                var g = e.html();
                var f = 0;
                if (g) {
                    var d = g.split(" ");
                    for (x in d) {
                        f += Number(d[x])
                    }
                    if (f == b) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var c = getsPos(e);
                    if (a == 0) {
                        a = c.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(a)
    })
}
function kdCheck() {
    $("#kd").change(function() {
        var b = $(this).val();
        var a = 0;
        if (b) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var e = $(this).find("td").eq(0);
                var d = e.html();
                if (d) {
                    var c = d.split(" ");
                    var g = 0;
                    var k = 0;
                    c.sort();
                    var f = c[0];
                    var i = c[c.length - 1];
                    var h = Number(i) - Number(f);
                    if (b == h) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var l = getsPos(e);
                    if (a == 0) {
                        a = l.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(a)
    })
}
function l012Check() {
    $("#l012").change(function() {
        var h = $(this).val();
        var c = h.substring(0, 1);
        var d = h.substring(1);
        var g = 0;
        if (c == "l") {
            var b = 0
        } else {
            if (c == "y") {
                var b = 1
            } else {
                if (c == "e") {
                    var b = 2
                }
            }
        }
        var a = "-03-06-09";
        var i = "-01-04-07-10";
        var f = "-02-05-08-11";
        if (d) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var n = $(this).find("td").eq(0);
                var o = n.html();
                if (o) {
                    var m = o.split(" ");
                    var l = 0;
                    var e = 0;
                    for (e in m) {
                        if (b == 0) {
                            if (a.indexOf("-" + m[e]) >= 0) {
                                l++
                            }
                        } else {
                            if (b == 1) {
                                if (i.indexOf("-" + m[e]) >= 0) {
                                    l++
                                }
                            } else {
                                if (b == 2) {
                                    if (f.indexOf("-" + m[e]) >= 0) {
                                        l++
                                    }
                                }
                            }
                        }
                    }
                    if (l == d) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var k = getsPos(n);
                    if (g == 0) {
                        g = k.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(g)
    })
}
function zhCheck() {
    $("#zh").change(function() {
        var f = $(this).val();
        var b = f.substring(0, 1);
        var c = f.substring(1);
        var e = 0;
        var a = (b == "z") ? 0 : 1;
        var g = "-01-02-03-05-07-11";
        var d = "-04-06-08-09-10";
        if (c) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var m = $(this).find("td").eq(0);
                var n = m.html();
                if (n) {
                    var l = n.split(" ");
                    var k = 0;
                    var h = 0;
                    for (h in l) {
                        if (a == 0) {
                            if (g.indexOf("-" + l[h]) >= 0) {
                                k++
                            }
                        } else {
                            if (g.indexOf("-" + l[h]) < 0) {
                                k++
                            }
                        }
                    }
                    if (k == c) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var i = getsPos(m);
                    if (e == 0) {
                        e = i.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(e)
    })
}
function dxCheck() {
    $("#dx").change(function() {
        var g = $(this).val();
        var c = g.substring(0, 1);
        var d = g.substring(1);
        var f = 0;
        var a = (c == "d") ? 0 : 1;
        var b = "-01-02-03-04-05";
        var e = "-06-07-08-09-10-11";
        if (d) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var m = $(this).find("td").eq(0);
                var n = m.html();
                if (n) {
                    var l = n.split(" ");
                    var k = 0;
                    var h = 0;
                    for (h in l) {
                        if (a == 0) {
                            if (e.indexOf("-" + l[h]) >= 0) {
                                k++
                            }
                        } else {
                            if (e.indexOf("-" + l[h]) < 0) {
                                k++
                            }
                        }
                    }
                    if (k == d) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var i = getsPos(m);
                    if (f == 0) {
                        f = i.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(f)
    })
}
function joCheck() {
    $("#js").change(function() {
        var g = $(this).val();
        var d = g.substring(0, 1);
        var e = g.substring(1);
        var f = 0;
        var b = d == "j" ? 0 : 1;
        var c = "-01-03-05-07-09-11";
        var a = "-02-04-06-08-10";
        if (e) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var m = $(this).find("td").eq(0);
                var n = m.html();
                if (n) {
                    var l = n.split(" ");
                    var k = 0;
                    var h = 0;
                    for (h in l) {
                        if (b == 0) {
                            if (a.indexOf("-" + l[h]) < 0) {
                                k++
                            }
                        } else {
                            if (a.indexOf("-" + l[h]) >= 0) {
                                k++
                            }
                        }
                    }
                    if (k == e) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var i = getsPos(m);
                    if (f == 0) {
                        f = i.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(f)
    })
}
function numberCheck() {
    $("#numbercheck").click(function() {
        var b = $("#ylball_selected").val();
        var a = b.length;
        var c = 0;
        if (b) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var f = $(this).find("td").eq(0);
                var i = f.html();
                if (i) {
                    var e = b.split(" ");
                    var g = 0;
                    for (x in e) {
                        if (i.indexOf(e[x]) >= 0) {
                            g++
                        }
                    }
                    if (g == e.length) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var h = f.offset();
                    var d = getsPos(f);
                    if (c == 0) {
                        c = d.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(c)
    })
}
function numberCheck2() {
    $("#numbercheck2").click(function() {
        var c = $("#ylball_selected").val();
        var e = c.split(" ");
        var b = typeof(e[0]) == "string" ? e[0] : "";
        var a = typeof(e[1]) == "string" ? e[1] : "";
        var d = 0;
        if (b || a) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var i = $(this).find("td").eq(0);
                var l = i.html();
                var j = 0;
                var h = 0;
                if (l) {
                    var g = l.split(" ");
                    if (b != "") {
                        if (b.indexOf(g[0]) >= 0) {
                            j = 1
                        }
                    } else {
                        j = 1
                    }
                    if (a != "") {
                        if (a.indexOf(g[1]) >= 0) {
                            h = 1
                        }
                    } else {
                        h = 1
                    }
                    if (j == 1 && h == 1) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var k = i.offset();
                    var f = getsPos(i);
                    if (d == 0) {
                        d = f.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(d)
    })
}
function numberCheck3() {
    $("#numbercheck3").click(function() {
        var c = $("#ylball_selected").val();
        var f = c.split(" ");
        var b = typeof(f[0]) == "string" ? f[0] : "";
        var a = typeof(f[1]) == "string" ? f[1] : "";
        var e = typeof(f[2]) == "string" ? f[2] : "";
        var d = 0;
        if (b || a || e) {
            $("#tablesort").find("tr").each(function() {
                isOk = false;
                var k = $(this).find("td").eq(0);
                var n = k.html();
                var l = 0;
                var j = 0;
                var h = 0;
                if (n) {
                    var i = n.split(" ");
                    if (b != "") {
                        if (b.indexOf(i[0]) >= 0) {
                            l = 1
                        }
                    } else {
                        l = 1
                    }
                    if (a != "") {
                        if (a.indexOf(i[1]) >= 0) {
                            j = 1
                        }
                    } else {
                        j = 1
                    }
                    if (e != "") {
                        if (e.indexOf(i[2]) >= 0) {
                            h = 1
                        }
                    } else {
                        h = 1
                    }
                    if (l == 1 && j == 1 && h == 1) {
                        isOk = true
                    }
                }
                if (isOk) {
                    $(this).find("td").css({
                        "background-color": "#EFF9FC"
                    });
                    var m = k.offset();
                    var g = getsPos(k);
                    if (d == 0) {
                        d = g.sTop - 100
                    }
                } else {
                    if ($(this).attr("id") != "first") {
                        $(this).find("td").css({
                            "background-color": ""
                        });
                        $(this).css({
                            display: "none"
                        })
                    }
                }
            })
        }
        $(window).scrollTop(d)
    })
}
function getsPos(q) {
    if (!q) {
        return null
    }
    var z = $(q).offset(),
    y = z.top,
    w = z.left,
    v = y - $(window).scrollTop(),
    u = w - $(window).scrollLeft(),
    t = $(window).height(),
    s = $(window).width(),
    r = !1,
    p = !1,
    o = !1,
    n = !1,
    m = 0;
    return t / 2 - v > 0 ? r = !0 : p = !0,
    s / 2 - u > 0 ? o = !0 : n = !0,
    r && o && (m = 1),
    r && n && (m = 2),
    p && n && (m = 3),
    p && o && (m = 4),
    {
        sTop: v,
        sLeft: u,
        sWidth: s,
        sHeight: t,
        top: y,
        left: w,
        curPos: m
    }
};